package com.bwie.commodity.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bwie.common.core.annotation.Excel;
import com.bwie.common.core.web.domain.BaseEntity;

/**
 * 商品列表对象 commodity
 *
 * @author ruoyi
 * @date 2024-11-18
 */
public class Commodity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 商品分类 */
    private Long categoryId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String commodityName;

    /** 副标题 */
    private String subheading;

    /** 商品品牌 */
    @Excel(name = "商品品牌")
    private Long brandId;

    /** 商品介绍 */
    private String commodityDesciption;

    /** 商品货号 */
    @Excel(name = "商品货号")
    private String ltemNumber;

    /** 商品售价 */
    @Excel(name = "商品售价")
    private BigDecimal commoditySellingPrice;

    /** 市场价 */
    private BigDecimal marketPrice;

    /** 商品库存 */
    private Long commodityInventory;

    /** 计量单位 */
    private String commodityUnit;

    /** 商品重量 */
    private Long commodityWeight;

    /** 排序 */
    @Excel(name = "排序")
    private Long commoditySort;

    /** 上架 */
    @Excel(name = "上架")
    private Long isShelves;

    /** 新品 */
    @Excel(name = "新品")
    private Long isNew;

    /** 推荐 */
    @Excel(name = "推荐")
    private Long isRecommend;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Long reviewStatus;

    /** 赠送的积分 */
    private Long giftPoint;

    /** 赠送的成长值 */
    private Long giftGrowth;

    /** 限制使用的积分数 */
    private Long usePointLimit;

    /** 是否为预告商品：0-&gt;不是；1-&gt;是 */
    private Long previewStatus;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setCommodityName(String commodityName)
    {
        this.commodityName = commodityName;
    }

    public String getCommodityName()
    {
        return commodityName;
    }
    public void setSubheading(String subheading)
    {
        this.subheading = subheading;
    }

    public String getSubheading()
    {
        return subheading;
    }
    public void setBrandId(Long brandId)
    {
        this.brandId = brandId;
    }

    public Long getBrandId()
    {
        return brandId;
    }
    public void setCommodityDesciption(String commodityDesciption)
    {
        this.commodityDesciption = commodityDesciption;
    }

    public String getCommodityDesciption()
    {
        return commodityDesciption;
    }
    public void setLtemNumber(String ltemNumber)
    {
        this.ltemNumber = ltemNumber;
    }

    public String getLtemNumber()
    {
        return ltemNumber;
    }
    public void setCommoditySellingPrice(BigDecimal commoditySellingPrice)
    {
        this.commoditySellingPrice = commoditySellingPrice;
    }

    public BigDecimal getCommoditySellingPrice()
    {
        return commoditySellingPrice;
    }
    public void setMarketPrice(BigDecimal marketPrice)
    {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getMarketPrice()
    {
        return marketPrice;
    }
    public void setCommodityInventory(Long commodityInventory)
    {
        this.commodityInventory = commodityInventory;
    }

    public Long getCommodityInventory()
    {
        return commodityInventory;
    }
    public void setCommodityUnit(String commodityUnit)
    {
        this.commodityUnit = commodityUnit;
    }

    public String getCommodityUnit()
    {
        return commodityUnit;
    }
    public void setCommodityWeight(Long commodityWeight)
    {
        this.commodityWeight = commodityWeight;
    }

    public Long getCommodityWeight()
    {
        return commodityWeight;
    }
    public void setCommoditySort(Long commoditySort)
    {
        this.commoditySort = commoditySort;
    }

    public Long getCommoditySort()
    {
        return commoditySort;
    }
    public void setIsShelves(Long isShelves)
    {
        this.isShelves = isShelves;
    }

    public Long getIsShelves()
    {
        return isShelves;
    }
    public void setIsNew(Long isNew)
    {
        this.isNew = isNew;
    }

    public Long getIsNew()
    {
        return isNew;
    }
    public void setIsRecommend(Long isRecommend)
    {
        this.isRecommend = isRecommend;
    }

    public Long getIsRecommend()
    {
        return isRecommend;
    }
    public void setReviewStatus(Long reviewStatus)
    {
        this.reviewStatus = reviewStatus;
    }

    public Long getReviewStatus()
    {
        return reviewStatus;
    }
    public void setGiftPoint(Long giftPoint)
    {
        this.giftPoint = giftPoint;
    }

    public Long getGiftPoint()
    {
        return giftPoint;
    }
    public void setGiftGrowth(Long giftGrowth)
    {
        this.giftGrowth = giftGrowth;
    }

    public Long getGiftGrowth()
    {
        return giftGrowth;
    }
    public void setUsePointLimit(Long usePointLimit)
    {
        this.usePointLimit = usePointLimit;
    }

    public Long getUsePointLimit()
    {
        return usePointLimit;
    }
    public void setPreviewStatus(Long previewStatus)
    {
        this.previewStatus = previewStatus;
    }

    public Long getPreviewStatus()
    {
        return previewStatus;
    }

    public Commodity() {
    }

    public Commodity(Long id, Long categoryId, String commodityName, String subheading, Long brandId, String commodityDesciption, String ltemNumber, BigDecimal commoditySellingPrice, BigDecimal marketPrice, Long commodityInventory, String commodityUnit, Long commodityWeight, Long commoditySort, Long isShelves, Long isNew, Long isRecommend, Long reviewStatus, Long giftPoint, Long giftGrowth, Long usePointLimit, Long previewStatus) {
        this.id = id;
        this.categoryId = categoryId;
        this.commodityName = commodityName;
        this.subheading = subheading;
        this.brandId = brandId;
        this.commodityDesciption = commodityDesciption;
        this.ltemNumber = ltemNumber;
        this.commoditySellingPrice = commoditySellingPrice;
        this.marketPrice = marketPrice;
        this.commodityInventory = commodityInventory;
        this.commodityUnit = commodityUnit;
        this.commodityWeight = commodityWeight;
        this.commoditySort = commoditySort;
        this.isShelves = isShelves;
        this.isNew = isNew;
        this.isRecommend = isRecommend;
        this.reviewStatus = reviewStatus;
        this.giftPoint = giftPoint;
        this.giftGrowth = giftGrowth;
        this.usePointLimit = usePointLimit;
        this.previewStatus = previewStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryId", getCategoryId())
            .append("commodityName", getCommodityName())
            .append("subheading", getSubheading())
            .append("brandId", getBrandId())
            .append("commodityDesciption", getCommodityDesciption())
            .append("ltemNumber", getLtemNumber())
            .append("commoditySellingPrice", getCommoditySellingPrice())
            .append("marketPrice", getMarketPrice())
            .append("commodityInventory", getCommodityInventory())
            .append("commodityUnit", getCommodityUnit())
            .append("commodityWeight", getCommodityWeight())
            .append("commoditySort", getCommoditySort())
            .append("isShelves", getIsShelves())
            .append("isNew", getIsNew())
            .append("isRecommend", getIsRecommend())
            .append("reviewStatus", getReviewStatus())
            .append("giftPoint", getGiftPoint())
            .append("giftGrowth", getGiftGrowth())
            .append("usePointLimit", getUsePointLimit())
            .append("previewStatus", getPreviewStatus())
            .toString();
    }
}
